package com.xinchao.job.service.sms;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinchao.job.mapper.dmp.DeviceWarnLogMapper;

@Service("smsService")
public class SmsService  {
	@Autowired
	private DeviceWarnLogMapper deviceWarnLogMapper;
	
	public void sendStatusCallBack(String smsMsgId,String status) {
		// 返回状态为“接收”更改数据库状态
		if ( "DELIVRD".equals(status) || "ACCEPTD".equals(status) ) {
			deviceWarnLogMapper.updateWarnlogWhenSmsSendSuccess(smsMsgId);
		}
	}
	 
}
